import { createRouter, createWebHistory } from 'vue-router'
import { generateRoutes } from './auto-routes'

const router = createRouter({
  history: createWebHistory(),
  routes: [
    ...generateRoutes(),
    {
      path: '/',
      name: 'home',
      component: () => import('../views/home/index.vue'),
      meta: {
        title: '首页'
      }
    }
  ]
})

export default router